/*
 * @Description: 设置管理API接口
 * @Author: QianLong
 * @Date: 2019-07-07 19:06:52
 * @LastEditors    : QianLong
 * @LastEditTime   : 2023-05-12 23:26:54
 */
import http from '@/utils/http/axios'

export function getAppVersionList(params) {
  return http.request({
    url: '/app/version_list',
    method: 'GET',
    params
  })
}
export function getAppList(params) {
  return http.request({
    url: '/app/app_list',
    method: 'GET',
    params
  })
}
export function delAppItem(params) {
  return http.request(
    {
      url: '/app/del_app',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function delAppVersionItem(params) {
  return http.request(
    {
      url: '/app/del_version',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function delLogAll(params) {
  return http.request(
    {
      url: '/app/del_log_all',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function delAppVersionBatch(params) {
  return http.request(
    {
      url: '/app/del_version_batch',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function delAppBatch(params) {
  return http.request(
    {
      url: '/app/del_app_batch',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function editAppInfo(params) {
  return http.request(
    {
      url: '/app/editAppInfo',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function editVersionInfo(params) {
  return http.request(
    {
      url: '/app/editVersionInfo',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function changeForceVersion(params) {
  return http.request(
    {
      url: '/app/changeForceVersion',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function changeStatusVersion(params) {
  return http.request(
    {
      url: '/app/changeStatusVersion',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function getItemInfo(params) {
  return http.request({
    url: '/app/editItemInfo',
    method: 'GET',
    params
  })
}
